package com.arpa.ntocc.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 数据字典表
 * </p>
 *
 * @author liuyj
 * @since 2019-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_dict")
@ApiModel(value="Dict对象", description="数据字典表")
public class Dict extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字典类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "字典code")
    @TableField("code")
    @Length(max = 100, message = "编码最多输入100个字符")
    private String code;

    @ApiModelProperty(value = "名字")
    @TableField("name")
    @Length(max = 255, message = "名称最多输入255个字符")
    private String name;

    @ApiModelProperty(value = "0正常/1停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    @Length(max = 255, message = "备注最多输入255个字符")
    private String remark;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "机构code")
    @TableField("branch_code")
    private String branchCode;

}
